package model
{
	import flash.display.*;
	import flash.media.*;
	import flash.net.FileReference;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	
	public class Product extends MovieClip
	{
		private var id:String = new String()
		private var nameSound:Sound = new Sound();
		private var explanationSound:Sound = new Sound();
		private var picPath:String = new String();
		
		public function Product(id:String, picPath:String, nameSoundPath:String, explanationSoundPath:String):void{
			this.id = id; 
			this.nameSound.load(new URLRequest(nameSoundPath));
			this.explanationSound.load(new URLRequest(explanationSoundPath));
			this.picPath = picPath;	
		}			
		
		public function getId():String {
			return this.id;
		}
		
		public function getNameSound():Sound {
			return this.nameSound;
		}
		
		public function getPic():String{
			return this.picPath;	
		}
		
		public function getExplanationSound():Sound {
			return this.explanationSound;
		}
	}
}